package com.bookrecomm.crawler.entity;

import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 图书实体类
 */
@Data
public class Book {
    private Long id;
    private String title;
    private String isbn;
    private String author;
    private String publisher;
    private Date publishDate;
    private String language;
    private BigDecimal price;
    private Integer pages;
    private String coverUrl;
    private String description;
    private String catalog;
    private BigDecimal rating;
    private Integer ratingCount;
    private Integer favoriteCount;
    private Long commentCount;
    private Long readCount;
    private Long finishCount;
    private Integer sales;
    private Integer stock;
    private Integer status;
    private Date createdAt;
    private Date updatedAt;
    
    // 非数据库字段，用于存储关联数据
    private List<Category> categories;
    private List<Tag> tags;
    private List<Comment> comments;
    private List<RatingDistribution> ratingDistributions;
}
